public class prime {
    public static void main(String[] args) {
        for (int i = 1; i <= 100; i++) {
            int count=0;
            if (i==1){
                count=1;
            }
            for (int j = 2; j < i ; j++) {
                if (i%j==0){
                    count=1;
                    break;
                }
            }
            if (count==0){
                System.out.println(i);
            }
        }
    }

}
